from aiogram import Bot
from aiogram.types import BotCommand, BotCommandScopeDefault
from .logger import debugger


async def set_commands(bot: Bot, commands: list[BotCommand]):    
    await bot.set_my_commands(commands), BotCommandScopeDefault
    debugger.info("Заданы команды "+str(commands))